using System;
using WineCellar.Core.Interfaces;

namespace WineCellar.Core.PropertyParsers
{
    public class GuidPropertyParser :IPropertyParser
    {
        public bool IsEmpty(object value)
        {
            return new Guid(value.ToString()) != Guid.Empty;
        }

        public bool IsParsable(Type type)
        {
            return type.Equals(typeof(Guid));
        }
    }
}